package com.tang;

/*
* Volkswagen（大众）抽象类，私有变量：name（String类型，车名），mile（int类型，每小时时速），consumption（int类型，每小时油耗），get、set方法，空参、满参构造。
* */
public abstract class Volkswagen {
      //车名
      private String name;
      //每小时时速
      private int mile;
      //每小时油耗
      private int consumption;

      public Volkswagen(String name, int mile, int consumption) {
            this.name = name;
            this.mile = mile;
            this.consumption = consumption;
      }

      public Volkswagen() {
      }

      public String getName() {
            return name;
      }

      public void setName(String name) {
            this.name = name;
      }

      public int getMile() {
            return mile;
      }

      public void setMile(int mile) {
            this.mile = mile;
      }

      public int getConsumption() {
            return consumption;
      }

      public void setConsumption(int consumption) {
            this.consumption = consumption;
      }


      //带参带返回值的抽象方法
      public abstract Run myRun(Volkswagen volkswagen);
      //无参无返回值抽象方法
      public  abstract void StartSpeed();


}
